from django.urls import path
from . import views

urlpatterns = [
    # 文章相关URL
    path('article/', views.ArticleListView.as_view(), name='article_list'),
    path('articles/<int:pk>/', views.ArticleDetailView.as_view(), name='article_detail'),
    # 栏目相关URL
    path('columns/', views.ColumnListView.as_view(), name='column_list'),
    path('columns/<slug:slug>/', views.ColumnDetailView.as_view(), name='column_detail'),
]